/**
 * 
 */

package com.the9tcat.funnyalarmclock;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

/**
 * @author jianhpin
 */
public class FunnyAlarmActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuItem account = menu.add(R.string.menu_item_account);
        account
                .setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
                    @Override
                    public boolean onMenuItemClick(MenuItem item) {
                        Intent intent = new Intent(FunnyAlarmActivity.this,
                                                   AccountActivity.class);
                        startActivity(intent);
                        return false;
                    }
                });
        return super.onCreateOptionsMenu(menu);
    }
}
